package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"pa/api/internal/config"
	"pa/parpc/parpcclient"
)

type ServiceContext struct {
	Config config.Config
	PaRpc  parpcclient.Parpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		PaRpc:  parpcclient.NewParpc(zrpc.MustNewClient(c.PaRpc)),
	}
}
